home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 53 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.8 KB

  1. From: "Eugene Radchenko" <eugene@qsar.chem.msu.su>
  2. Message-ID: <ABJRD_mKQD@qsar.chem.msu.su>
  3. X-Original-Date: Wed, 17 Jan 1996 14:00:35 +0300 (MSK)
  4. Path: in1.uu.net!bounce-back
  5. Date: 17 Jan 96 12:02:22 GMT
  6. Approved: fjh@cs.mu.oz.au
  7. Newsgroups: comp.std.c++
  8. Organization: Lab. of Org.Synth., MSU
  9. X-Mailer: dMail [Demos Mail for DOS v1.23]
  10. Subject: Enhanced container functionality
  11. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  12.     iQBFAgUBMPzlceEDnX0m9pzZAQG17QF/afZQtkgSehl5YshMwhRNCG5eQtPnG6/A
  13.     9N74zq+Ump+klTgxjoBKqLzAE8w0236+
  14.     =XKrX
  15.  
  16. Hi!
  17. Having used the STL for some time, I have come to greatly missing some nice
  18. things (and eventually derived Vector<T> from vector<T>, adding them along
  19. with persistence support).
  20. First, it is the ability to (easily) flush the entire container
  21.   void erase() { erase(begin(), end()); }
  22. Second, it is the 'post-factum' equivalents to some constructors
  23.   void assign(size_type n, T t = T());
  24.   void assign(const_iterator first, const_iterator last);
  25. etc. - putting the container into the same state as the one it would have
  26. after the respective constructor (with the possible exception of more
  27. reserved space available).
  28. I think these features deserve inclusion.
  29.  
  30.               Bye                Genie
  31.  
  32.  
  33. --
  34. --------------------------------------------------------------------
  35. Eugene V. Radchenko           Research associate, Computer Chemistry
  36. E-mail: eugene@qsar.chem.msu.su                Fax: +7-(095)939-0290 
  37. Ordinary mail:  Chair of Organic Chemistry, Department of Chemistry,
  38.                       Moscow State University, 119899 Moscow, Russia
  39. *****************  Disappearances are deceptive  *******************
  40. ---
  41. [ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  42.   Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  43.   is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
  44.